<div id="navpanel">
	<ul>
		<li><a href="/SWIMv2gm/abilities/AbilityList">Cerca competenze</a></li>
		<%
			if (request.getSession().getAttribute("user") == null) {
		%>
		<li><a href="/SWIMv2gm/">Login</a></li>
		<li><a href="/SWIMv2gm/user/signup.jsp">Registrati</a></li>
		<%
			}
			else {
				if (request.getSession().getAttribute("admin") == null
						|| !(Boolean)request.getSession().getAttribute("admin")) {
		%>
		<li><a href="/SWIMv2gm/search/search.jsp">Cerca utenti</a></li>
		<li><a
			href="/SWIMv2gm/user/Profile?uid=<%=request.getSession().getAttribute("user")%>">Home
				personale</a></li>
		<li><a href="/SWIMv2gm/user/FriendList">Lista amici</a></li>
		<li><a href="/SWIMv2gm/requests/MyRequests">Lista richieste di
				lavoro</a></li>
		<%
			}
				else {
		%>
		<li><a href="/SWIMv2gm/admin/addAbility.jsp">Inserisci
				competenza</a></li>
		<%
			}
		%><li><a href="/SWIMv2gm/Logout">Logout</a></li>
		<%
			}
		%>
	</ul>
</div>